package ooday05;

import ooday04.Swim;

public class Dog extends Animal implements Swim {
    Dog(String name ,int age , String color){
        super(name, age, color);
    }
    void eat(){
        System.out.println(color+age+"岁的"+name+"在吃饭");
    }
    void drink(){
        System.out.println(color+age+"岁的"+name+"在喝水");
    }
    void lookHome(){
        System.out.println(name+"在看家");
    }
    public void swim(){
        System.out.println(color+age+"岁的"+name+"在狗刨");
    }
}
